<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 创建一个数组
    //* 1.字面量创建方式
    var a = [1, 2, 3];
    //* 2.构造器创建数组
    var b = Array(); // []
    var c = Array(3); //[, , ,]
    var d = Array(3, 2, 5); //[3, 2, 5]
    console.log(a, b, c, d);
</script>
</html>